// import com.alibaba.druid.sql.ast.SQLExpr;
// import com.alibaba.druid.sql.ast.SQLObjectImpl;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLAlterTableCoalescePartition.h"
#include "../../visitor/SQLASTVisitor.h"
#include "../SQLExpr.h"

SQLExpr_ptr SQLAlterTableCoalescePartition::getCount()
{
  return count;
}

void SQLAlterTableCoalescePartition::setCount(SQLExpr_ptr count)
{
  if (count != nullptr)
  {
    count->setParent(SharedObject(SQLAlterTableCoalescePartition));
  }
  this->count = count;
}

// @Override
void SQLAlterTableCoalescePartition::accept0(SQLASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(SQLAlterTableCoalescePartition)))
  {
    acceptChild(visitor, count);
  }
  visitor->endVisit(SharedObject(SQLAlterTableCoalescePartition));
}
